﻿using System;
using System.Collections.Generic;
using System.Data;

using SiteUnity.Frame.Common.Tools.Class;
using SiteUnity.Layers.Entity.PageItems;

namespace SiteUnity.Layers.Core.Provider
{
    public class PageItemProvider :Provider
    {
        public PageItemProvider()
        {
            SetDefaultConnection();
        }

        public List<PageItemType> selectPageItemType()
        {
            Database.clear();
            DataTable datatable = Database.executeQuery("SU_selectPageItemType");
            Database.close();

            return ClassMapper.ToClassList<PageItemType>(datatable);
        }
    }
}
